﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}Validform_v5.3.2_min.js"></script>
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>权限管理<b class="tip"></b>权限添加</div>
    &nbsp;<a class="btn" id="Button3" href="{:U('lst')}">返回权限列表</a>
    <form class="demoform" name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data">
    
        <table class="tb" id="top" cellspacing="1" cellpadding="3" width="100%">
			<tr>
				<td class="alert alert-info">上级权限：</td>
				<td>
					<select name="parent_id">
                                            <option value="0">顶级权限</option>
                                            <volist name='parentData' id='v'>						
                                            <option value="{$v['id']}">
                                                {:str_repeat('-', 8*$v['level']).$v['pri_name']}</option>
                                            </volist>					
                                        </select>
				</td>
			</tr>
            <tr>
                <td class="alert alert-info">权限名称：</td>
                <td>
                    <input  type="text" name="pri_name" value="" datatype="*1-30" errormsg="权限名称最多20个字符！ "/>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">模块名称：</td>
                <td>
                    <input  type="text" name="module_name" value="" datatype="*1-20" errormsg="模块名称最多20个字符！"/>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">控制器名称：</td>
                <td>
                    <input  type="text" name="controller_name" value="" datatype="*1-20" errormsg="控制器名称最多20个字符！"/>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">方法名称：</td>
                <td>
                    <input  type="text" name="action_name" value=""datatype="*1-20" errormsg="方法名称最多20个字符！" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </table>
    </form>

</body>
</html>
<script>
    $(".demoform").Validform();
</script>